This menu contains the Event Handlers implemented in Navigator 2.0, 3.0 and later, several of the handlers should also work in Internet Explorer 3.0.1 and later.
How to use:
Place the cursor inside the start tag for the object where you want a special function to be called when a certain event (or action) occurs.
To find out which tags, or JavaScript Objects, that has support for specific event handlers, select the menu item “Examples…” to display a summary of the Event Handlers.
The first section of this menu contains event handlers that works in version 2.0 and later, while the second section only works with Navigator 3.0 and later.
OK, but what are Event Handlers?
In JavaScript you can write functions that perform various actions. If you place a call to the function inside the page, the function is performed when that section of the page is loaded and displayed by the browser.
To be able to start functions and perform actions described by JavaScript after a page has loaded, Event Handlers can be used. Event handlers are specified inside the start tag for several of the HTML tags that are represented as JavaScript objects. These objects can then be programmed to perform useful actions.
An event is basically an action that is performed by either the user, e.g. when the user clicks upon a button, or automatically generated when e.g., a page has loaded. These actions, or events as they are called by programmers, are reported by the browser to the JavaScripts objects in a page.
If you want to know when a specific event has occured you simply add an event handler inside the start tag of the object. For a button object in a form, you could add the following event handler:
onClick="showGreeting()"
Whenever the user clicks upon the button, your function with the name "showGreeting", written by you and placed in the HEAD section of the page, is automatically performed.